import { createRouter, createWebHashHistory, createWebHistory } from 'vue-router'
// import HomeView from '../views/HomeView.vue'

const routes = [
    {
      path: '/',
      name: 'Home',
      component:()=>import("../views/Home.vue")
    },
    {
      path: '/FilmList',
      name: 'FilmList',
      component:()=>import("../views/FilmList.vue")
    },
    {
      path: '/TypeList',
      name: 'TypeList',
      component:()=>import("../views/TypeList.vue")
    },
    {
      path: '/FilmDetail',
      name: 'FilmDetail',
      component:()=>import("../views/FilmDetail.vue")
    },
    {
      path: '/SearchFilm',
      name: 'SearchFilm',
      component:()=>import("../views/SearchFilm.vue")
    }
]

const router = createRouter({
  // history: createWebHistory(process.env.BASE_URL),
  history: createWebHashHistory(process.env.BASE_URL),


  routes
})

export default router
